var path = require('path');

module.exports = {
    build: {
        env  : require('./prod.env'),
        index: path.resolve(__dirname, '../dist/index.html'),
        assetsRoot: path.resolve(__dirname, '../dist'),
        assetsSubDirectory: 'static',
        assetsPublicPath: './',
        productionSourceMap: true,
        productionGzip: false,
        productionGzipExtensions: ['js', 'css']
    },
    
    dev: {
        port: 8092,
        env: require('./dev.env'),
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {
            '/api': 
            {
                target: 'http://127.0.0.1:6666/',
                changeOrigin: true,
                pathRewrite: {'^/api': '/'}
            }
        },
        cssSourceMap: false
    }
}
